explicit cast meaning in English
显式转换
Examples
- However , an explicit cast is needed to convert from
类型到整型的转换需要用显式类型转换来完成。 - Instead the expression must include an explicit cast operation
相反,表达式必须包含显式转换操作。 - For example , the following statement will produce a compilation error without an explicit cast
例如,不使用显式类型转换时,下列语句将产生编译错误: - You can never cast objects of sibling classes ( sharing the same parent ) , even with an explicit cast
你永远不可能转化具有同一个超类的类的对象,即使是刻意转化。 - For example , the following statement generates a compiler error unless an explicit cast is used
例如,除非使用显式强制转换,否则以下语句将生成一个编译器错误: